import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: Home
  },
  {
    path: '/financial',
    name: 'financial',
    component: () => import(/* webpackChunkName: "about" */ '../views/Financial.vue')
  },
  {
    path: '/borrowing',
    name: 'borrowing',
    component: () => import(/* webpackChunkName: "about" */ '../views/Borrowing.vue')
  },
  {
    path: '/money',
    name: 'money',
    component: () => import(/* webpackChunkName: "about" */ '../views/Money.vue')
  },
  {
    path: '/user',
    name: 'user',
    component: () => import(/* webpackChunkName: "about" */ '../views/User.vue')
  },
  {
    path: '/login',
    name: 'login',
    component: () => import(/* webpackChunkName: "about" */ '../views/Login.vue')
  },
]


const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  linkActiveClass:'active',
  routes
})

export default router
